#include <QSettings>
#include <QImage>
#include <QCoreApplication>
#include "notificationnewmessages.h"
#include "paths.h"

namespace Wishmaster
{
	NotificationNewMessages::NotificationNewMessages(const QString& text) : m_text(text)
	{
	}

	NotificationNewMessages::~NotificationNewMessages()
	{
	}

	QString NotificationNewMessages::title() const
	{
		return QCoreApplication::tr("New messages", "NotificatoinNewMessages");
	}

	QString NotificationNewMessages::text() const
	{
		return m_text;
	}

	QString NotificationNewMessages::icon() const
	{
		return ":/images/newmsg.png";
	}

	QString NotificationNewMessages::soundFile() const
	{
		QSettings settings;
		return settings.value("interface/notification/newmessage/sound", DefaultPath::shareRoot() + "/sounds/newmsg.wav").toString();
	}
}
